/*
    Author:afei
    Update:2013-03-10
    Mail:1290657123@qq.com
    Description:All For QieTuZai Or QiTuMei
*/
/*base*/
@import url("config.less");
@import url("mixins.less");

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, select, blockquote, p, button {
  margin: 0;
  padding: 0;
}

table, td, tr, th, h1, h2, h3, h4, h5, h6 {
  font-size: 12px;
}

//我们都知道，input, textarea, select这些控件元素本身就有文字大小，默认不会直接继承body等父级标签。
//因此，我们需要reset下，否则16像素的文字会吓着用户的。
input, textarea, select {
  font-size: 100%;
}

img, abbr, acronym {
  border: 0;
}

s {
  text-decoration: none;
}

ol, ul, li {
  list-style: none;
}

q:before, q:after {
  content: '';
}

address, caption, cite, code, dfn, em, i, b, th, var {
  font-weight: normal;
  font-style: normal;
}

*:focus {
  outline: none;
}

body {
  text-align: left;
  font-family: @bodyFont;
  background: @bodyBackground;
  color: @bodyColor;
  font-size: 12px;
}

a {
  color: @linkColor;
  text-decoration: @linkTextUnderLine;
  &:hover {
    color: @linkHoverColor;
    text-decoration: @linkHoverTextUnderLine;
  }
}

/* font */
.f- { //font-family
  &yh {
    font-family: Microsoft YaHei, simhei, simsun, Arial;
  }
  &hei {
    font-family: simhei, simsun, Arial;
  }
  &arial {
    font-family: Arial, Helvetica, sans-serif, simsun;
  }
  &ver {
    font-family: verdana, simsun, sans-serif;
  }
  &geo {
    font-family: Georgia;
  }
  &tah {
    font-family: Tahoma;
  }
//font-size:
  &z10 {
    .font-size(10px);
  }
  &z12 {
    .font-size(12px);
  }
  &z14 {
    .font-size(14px);
  }
  &z16 {
    .font-size(16px);
  }
  &z18 {
    .font-size(18px);
  }
//font-weight
  &wb {
    font-weight: bold;
  }

  &wn {
    font-weight: normal;
  }
  &w600 {
    font-weight: 600;
  }
  &si {
    font-style: italic;
  }
  &sn {
    font-style: normal;
  }
}

/*color link_color*/
.cRed,
.cRed a {
  color: @colorRed;
}

.cWhite,
.cWhite a {
  color: @colorWhite;
}

.cYellow,
.cYellow a {
  color: @colorYellow;
}

.cOrange,
.cOrange a {
  color: @colorOrange;
}

.cGreen,
.cGreen a {
  color: @colorGreen;
}

.cGray,
.cGray a {
  color: @colorGray;
}

.cBlack,
.cBlack a {
  color: @colorBlack;
}

.cBlue,
.cBlue a {
  color: @colorBlue;
}

.cRed a:hover,
.cWhite a:hover,
.cYellow a:hover,
.cOrange a:hover,
.cGreen a:hover,
.cGray a:hover,
.cBlack a:hover,
.cBlue a:hover {
  color: @linkHoverColor;
}

/*color font*/
.c0 {
  color: @colorBlack;
}

.c3 {
  color: @color333;
}

.c6 {
  color: @color666;
}

.c9 {
  color: @color999;
}

.cc {
  color: @colorCCC;
}

.cd {
  color: @colorDDD;
}

.ce {
  color: @colorEEE;
}

.cf {
  color: @colorWhite;
}

/* Background  */
.bg {
  &c0 {
    background-color: @colorBlack;
  }
  &c3 {
    background-color: @color333;
  }
  &c6 {
    background-color: @color666;
  }
  &c9 {
    background-color: @color999;
  }
  &cc {
    background-color: @colorCCC;
  }
  &cd {
    background-color: @colorDDD;
  }
  &ce {
    background-color: @colorEEE;
  }
  &cf {
    background-color: @colorWhite;
  }
}

/* Position */
.zi_ {
  z-index: -1;
}

.zi1 {
  z-index: 1;
}

.zi2 {
  z-index: 2
}

.zi3 {
  z-index: 3
}

.zi4 {
  z-index: 4
}

.zi5 {
  z-index: 5
}

.zi9 {
  z-index: 9999
}

.zi0 {
  z-index: 10000
}

/*display */
.dn {
  display: none;
}

.db {
  display: block;
}

.di {
  display: inline;
}

.dib {
  display: inline-block;
}

.dtbc {
  display: table-cell;
}

.dib_ { .inline-block;
}

/*cursor*/
.cp {
  cursor: pointer;
}

.cm {
  cursor: move;
}

.ct {
  cursor: text;
}

/*base margin + base padding*/
.auto {
  margin-left: auto;
  margin-right: auto;
}

.m0a {
  margin: 0 auto;
}

.m0 {
  margin: 0;
}

.p0 {
  padding: 0;
}

.fz0 {
  font-size: 0;
  -webkit-text-size-adjust: none;
}

.bd0 {
  border: 0 none;
}

.bdgn {
  border: 0 none;
  background: none;
}

/*float*/
.fl-li li,
.l {
  float: left;
}

.r {
  float: right;
}

.fln {
  float: none;
}

.tl {
  text-align: left;
}

.tc {
  text-align: center;
}

.tr {
  text-align: right;
}

.ti2e {
  text-indent: 2em;
}

.ti0 {
  text-indent: 0;
}

.ti_ {
  text-indent: -9999px;
}

.oz_ {
  overflow: hidden;
  zoom: 1;
}

.z,
.z_ * {
  zoom: 1;
}

/*vertical-align*/
.vm,
.vm_,
.vm_ * {
  vertical-align: middle;
}

.vim, .vim_ * {
  vertical-align: middle;
  display: inline-block;
}

.vat {
  vertical-align: top;
}

.vab {
  vertical-align: bottom;
}

/*clear+blank*/
.cl {
  clear: both;
  height: 0;
  line-height: 0;
  font-size: 0;
  overflow: hidden;
  display: block;
}
.clearfix:after{
	content:"\200B";
	display:block;
	height:0;
	visibility:hidden;
	clear:both;
	font-size: 0px;
}
.clearfix {
  *zoom: 1;
  &:after{
      content:"\200B";
      display:block;
      height:0;
      visibility:hidden;
      clear:both;
      font-size: 0;
  }
}

.blank3, .blank5, .blank6, .blank9, .blank10, .blank12, .blank15, .blank20, .blank50 {
  clear: both;
  overflow: hidden;
  display: block;
}

.blank3 {
  height: 3px;
}

.blank5 {
  height: 5px;
}

.blank6 {
  height: 6px;
}

.blank9 {
  height: 9px;
}

.blank10 {
  height: 10px;
}

.blank12 {
  height: 12px;
}

.blank15 {
  height: 15px;
}

.blank20 {
  height: 20px;
}

.blank50 {
  height: 50px;
}

/*position*/
.rel,
.relb_ {
  position: relative;
}

.abs {
  position: absolute;
}

.relb_ b {
  position: absolute;
}

/* Declaring HTML5 elements */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary {
  display: block;
}

/*debug*/
.tsR {
  border: 1px solid @colorRed;
}

.tsG {
  border: 1px solid @colorGreen;
}

.tsB {
  border: 1px solid @colorBlue;
}

/*useful base*/
.a_,
.a_:hover {
  text-decoration: none;
}

.table_ {
  border-collapse: collapse;
  border-spacing: 0;
}

//http://css-tricks.com/snippets/css/remove-button-text-in-ie7/
//http://www.sharpdotinc.com/ataylor/2009/02/01/ie-hack-hide-text-on-your-submit-buttons/
.btnNoText {
/*color: transparent;*/
  text-indent: -9999px;
  text-transform: capitalize;
}

.button_ {
  border: none;
  background: none;
  width: auto;
  overflow: visible;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  display: inline-block;
}

.cell {
  display: table-cell;
  *display: inline-block;
  width: 2000px;
  *width: auto;
}

.input100 {

}

.textarea100 {

}

/*css sprites*/
.layt {
  background: url(@spriteLayout) no-repeat;
}

.bgx {
  background: url(@spriteBgx) repeat-x;
}

.bgy {
  background: url(@spriteBgy) repeat-y;
}

[class^="icon-"],
.icon {
  background: url(@spriteIcons) no-repeat;
}

[class^="iconX-"],
.iconX {
  background: url(@spriteIconX) no-repeat;
}

[class^="iconY-"],
.iconY {
  background: url(@spriteIconY) no-repeat;
}

/*paddings+margins*/
.p5 {
  padding: 5px;
}

.p10 {
  padding: 10px;
}

.m5 {
  margin: 5px;
}

.m10 {
  margin: 10px;
}

.ml10 {
  margin-left: 10px;
}

.mr10 {
  margin-right: 10px;
}

.m5a {
  margin: 5px auto;
}

.m10a {
  margin: 10px auto;
}

.mt5 {
  margin-top: 5px;
}

.mb5 {
  margin-bottom: 5px;
}

/*for ie7*/
//<input type="checkbox" name="" id=""><label for="">Test Label</label>
//In ie7,this condition has some spacing.
.ie7ml3_ {
  *margin-left: -3px;
}

.ie7ml1_ {
  *margin-left: -1px;
}

.verfix_ {
  display: inline-block;
  height: 100%;
  vertical-align: middle
}
